import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 牛客网.简单题.求最小公倍数
 */

class Main {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        int m = console.nextInt();
        int n = console.nextInt();
        int result = getCM(m, n);
        System.out.println(result);
    }

    public static int getCM(int m, int n){

        //write your code here......
        int mr = m;
        int nr = n;
        int remainder = 0;
        while(m % n != 0) {
            remainder = m % n;
            m = n;
            n = remainder;
        }
        return mr * nr / n;
    }
}

public class Test {
}
